import axios from 'axios'
import consts from '../common/consts'
import { getInfoCookie } from '../common/utils'

// 意见反馈
export function postGuestBook(catid, data) {
    data = Object.assign({
        action: 'm_guestbook_post'
    }, data)
    return axios.post(consts.baseUrl + 'guestbook.php?catid=' + catid, data, {
        headers: {
            'content-type': 'application/json',
            "Authorization": getInfoCookie().token
        }
    })
}
